import request from '@/utils/request'

// 查询物流地址列表
export function listLogisticscourier(query) {
  return request({
    url: '/logisticscourier/logisticscourier/list',
    method: 'get',
    params: query
  })
}

// 查询物流地址详细
export function getLogisticscourier(courierId) {
  return request({
    url: '/logisticscourier/logisticscourier/' + courierId,
    method: 'get'
  })
}

// 新增物流地址
export function addLogisticscourier(data) {
  return request({
    url: '/logisticscourier/logisticscourier',
    method: 'post',
    data: data
  })
}

// 修改物流地址
export function updateLogisticscourier(data) {
  return request({
    url: '/logisticscourier/logisticscourier',
    method: 'put',
    data: data
  })
}

// 删除物流地址
export function delLogisticscourier(courierId) {
  return request({
    url: '/logisticscourier/logisticscourier/' + courierId,
    method: 'delete'
  })
}
